<nz-table #basicTable [nzData]="dataSet">
  <thead>
  <tr>
    <th>Name</th>
    <th>Summary</th>
    <th>Cover</th>
    <th>Action</th>
  </tr>
  </thead>
  <tbody>
  <tr *ngFor="let data of basicTable.data">
    <td>{{data.cateName}}</td>
    <td>{{data.summary}}</td>
    <td><img width="30" height="30" *ngIf="data.coverPic" [src]="data.coverPic" class="avatar"></td>
    <td>
      <a (click)="edit(data)">Edit</a>
      <nz-divider nzType="vertical"></nz-divider>
      <a nz-popconfirm nzTitle="Are you sure delete this category?" (nzOnConfirm)="delete(data.id)" nzPlacement="right">Delete</a>
    </td>
  </tr>
  </tbody>
</nz-table>
